import { Component, Node } from 'cc';
import { State } from './State';

export class Entity {

    index: number[]

    type: string

    node: Node

    constructor(index: number[], type: string) {
        this.type = type
        this.index = index
    }

    handleEvent(dirct?: string): State {
        return {
            move: true,
            cartoon: true
        }
    }

    preCheck() {
        return true
    }

}

